<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>TestNews</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestNews</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>No News Found For Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>summary</td>
	<td>First news</td>
</tr>
<tr>
	<td>type</td>
	<td>details</td>
	<td>This is the first news</td>
</tr>
<tr>
	<td>click</td>
	<td>private_news</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>document.forms[1].promote_news[1]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>News Added</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Summary</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//dl/a/b</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>This is the first news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=First news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>summary</td>
	<td>Private news</td>
</tr>
<tr>
	<td>type</td>
	<td>details</td>
	<td>only project members</td>
</tr>
<tr>
	<td>click</td>
	<td>document.forms[1].private_news[1]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>document.forms[1].promote_news[1]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>News Added</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Permissions created successfully</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Private news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>summary</td>
	<td>Promoted Private News</td>
</tr>
<tr>
	<td>type</td>
	<td>details</td>
	<td>Private news are not promoted to Codendi Brame-Farine front page</td>
</tr>
<tr>
	<td>click</td>
	<td>document.forms[1].private_news[1]</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>promote_news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>summary</td>
	<td>Promoted Public News</td>
</tr>
<tr>
	<td>type</td>
	<td>details</td>
	<td>Request promotion to Codendi Brame-Farine front page</td>
</tr>
<tr>
	<td>click</td>
	<td>promote_news</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>private_news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>News Added</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Promotion request has been sent to site administrators</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Promoted Private News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>summary</td>
	<td>Promoted Public News (rejected)</td>
</tr>
<tr>
	<td>type</td>
	<td>details</td>
	<td>Request promotion to Codendi Brame-Farine front page,<br />but admin will reject it.</td>
</tr>
<tr>
	<td>click</td>
	<td>promote_news</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>private_news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>News Added</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Promotion request has been sent to site administrators</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_member</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_member</td>
</tr>
<tr>
	<td>click</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Member</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Promoted Private News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Private news</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=First news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>registered_user</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>registered_user</td>
</tr>
<tr>
	<td>click</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for Registered User</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>words</td>
	<td>testnews</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>Search</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Search results for testnews</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=First news</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>link=Promoted Private News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>link=Private news</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>siteadmin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Page personnelle de Site Administrator</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Approbation annonces site</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>link=Promoted Private News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>status</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>document.forms[1].status[1]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>status</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Annonce mise à jour</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Promoted Public News (rejected)</td>
	<td></td>
</tr>
<tr>
	<td>click</td>
	<td>document.forms[1].status[2]</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>SUBMIT</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Annonce enlevée de la file d'attente</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>//img[@alt='Codendi Brame-Farine Bannière']</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Promoted Public News (rejected)</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Se déconnecter</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=User Permissions</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>news_user_104</td>
	<td>label=Admin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Permissions Updated</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_member</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_member</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Member</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=User Permissions</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>news_user_104</td>
	<td>label=Write</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Permissions Updated</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_member</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_member</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Member</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementPresent</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>link=Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_admin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=User Permissions</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>news_user_104</td>
	<td>label=Read</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>submit</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Permissions Updated</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_member</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_member</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Member</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>link=Submit News</td>
	<td></td>
</tr>
<tr>
	<td>assertElementNotPresent</td>
	<td>link=Admin</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>siteadmin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Page personnelle de Site Administrator</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Admin. groupe</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>form_public</td>
	<td>label=Non</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>Update</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Se déconnecter</td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=[XML]</td>
	<td></td>
</tr>
<tr>
	<td>assertTextNotPresent</td>
	<td>Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>news_member</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>news_member</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Personal Page for News Member</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Logout</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Login</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>form_loginname</td>
	<td>admin</td>
</tr>
<tr>
	<td>type</td>
	<td>form_pw</td>
	<td>siteadmin</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>login</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>Page personnelle de Site Administrator</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Admin. groupe</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Test News</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>form_public</td>
	<td>label=Oui</td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>Update</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=Se déconnecter</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>clickAndWait</td>
	<td>link=[XML]</td>
	<td></td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>Promoted Public News</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>/</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
